//
//  YLCSynchronizeViewController.m
//  LinYa
//
//  Created by Fancy on 2018/7/10.
//  Copyright © 2018年 初程程. All rights reserved.
//

#import "YLCSynchronizeViewController.h"
#import "YLCSynchronizeView.h"

@interface YLCSynchronizeViewController ()
@property (nonatomic,strong)YLCSynchronizeView *synchronizeView;
@end

@implementation YLCSynchronizeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    [self createCustomView];
}
- (void)createCustomView{
    [self.view addSubview:self.synchronizeView];
}
- (YLCSynchronizeView *)synchronizeView{
    if (!_synchronizeView) {
        _synchronizeView = [[YLCSynchronizeView alloc] initWithFrame:self.view.bounds];
        _synchronizeView.type = _type;
        _synchronizeView.code = _code;
    }
    return _synchronizeView;
}
- (void)setType:(NSInteger)type{
    _type = type;
}
- (void)setCode:(NSString *)code{
    _code = code;
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
